home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00014_Script_mouse changes < prev    next >
Text File  |  1999-04-25  |  1KB  |  51 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13.  
  14. property rolledOver
  15.  
  16. on new me
  17.   set rolledOver = FALSE
  18. end
  19.  
  20. on getbehaviorDescription
  21.   return "changes the image on rollover"
  22. end
  23.  
  24. on mouseenter me
  25.   if not rolledOver then 
  26.     set the castnum of sprite the spritenum of me to the castnum of sprite the spritenum of me +1
  27.     puppetsound 3, "subrollOld"
  28.     updatestage
  29.     set rolledOver = TRUE
  30.   end if 
  31. end
  32.  
  33. on mouseleave me
  34.   if rolledOver then
  35.     set the castnum of sprite the spritenum of me to the castnum of sprite the spritenum of me  -1
  36.     updatestage
  37.     set rolledOver = FALSE
  38.   end if
  39.   
  40. end
  41.  
  42. on mouseup
  43.   if rolledOver then
  44.     sound stop 1
  45.     sound stop 2
  46.     updatestage
  47.     puppetsound 3,"mouse5"
  48.     pass
  49.   end if
  50. end
  51.